package com.simple.indiapay.api;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestParam;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.Map;

/**
 * @author yasud
 * @date 2021年03月09日 09:52
 * @description
 **/
public interface PayApi {

    @POST("/Pay_Index.html")
    @Headers({
            HttpHeaders.ACCEPT+":"+MediaType.APPLICATION_JSON_VALUE
    })
    @FormUrlEncoded
    Call<ResponseBody> pay(@FieldMap Map<String,Object> param);

    @POST("/Pay_Trade_query.html")
    @Headers({
            HttpHeaders.ACCEPT+":"+MediaType.APPLICATION_JSON_VALUE
    })
    @FormUrlEncoded
    Call<ResponseBody> query(@FieldMap Map<String,Object> param);
}
